// 导入axios实例
import request from '@/utils/request.js'

// 注册
export function reqregister(data) {
  return request({
    url: '',
    method: 'post',
    data
  })
}

/**
 * 登录
 * @param {账号密码} data
 * @returns
 */
export function reqlogin(data) {
  return request({
    url: '/user/login',
    method: 'post',
    data
  })
}
/**
 *题目列表
 * @param {*} params
 * @returns
 */
export function reqgetQuestion(params = {}) {
  return request({
    url: '/activity/question',
    method: 'get',
    data: { ...params }
  })
}

/**
 *答题日志
 * @param {*} params
 * @returns
 */
// get 请求
export const reqgetQuestionLog = params => {
  return request({
    url: '/activity/question-log',
    method: 'get',
    params
  })
}

// post
// export const reqgetQuestionLog = data => {
//   return request({
//     url: '/activity/question-log',
//     method: 'post',
//     data
//   })
// }
